<!DOCTYPE html>
<html>
<head>
  <include file="Public/head"/>

  <script type="text/javascript" src="__DATA__/static/js/common.js"></script>
  <script type="text/javascript" src="__DATA__/static/js/user.js"></script>
  <script type="text/javascript" src="__JS__/jquery-2.1.0.min.js"></script>
</head>
<body>

<header id="header">
  <div class="header_l header_return"> <a class="ico_10" href="/"> 返回 </a> </div>
  <h1> 会员中心 </h1>
</header>
<dl class="user_top" style="height: 6.6rem;">
  <dt> <img src="__IMG__/get_avatar.png"> </dt>
  <dd>
    <p>{:session('member.username')}</p>
    <p><span>您的等级是 注册用户 </span></p>
  </dd>
  <!--<div class="user_top_list">-->
    <!--<ul>-->
      <!--<li> <a href="javascript:;"> <strong>0</strong> <img  src="__IMG__/ico_user_01.png"> <span>30天订单</span> </a> </li>-->
      <!--<li> <a href="javascript:;"> <strong>0</strong> <img  src="__IMG__/ico_user_02.png"> <span>积分</span> </a> </li>-->
      <!--<li> <a href="javascript:;"> <strong>0.00</strong> <img  src="__IMG__/ico_user_03.png"> <span>余额</span> </a> </li>-->
      <!--<li> <a class="fragment" href="user.php?act=bonus"> <strong>0</strong> <img  src="__IMG__/ico_user_04.png"> <span>红包</span> </a> </li>-->
    <!--</ul>-->
  <!--</div>-->
  <!--<div class="quan1"></div>-->
  <!--<div class="quan2"></div>-->
  <!--<div class="quan3"></div>-->
</dl>
<div class="blank3"></div>
<section class="wrap">
  <div class="list_box padd1 radius10" style="padding-top:0;padding-bottom:0;">
    <a href="{:U('Center/info')}" class="clearfix"> <span>用户信息</span><i></i> </a>
    <a href="{:U('Order/all')}" class="clearfix"> <span>我的订单</span><i></i> </a>
    <a href="{:U('Address/index')}"  class="clearfix"> <span>收货地址</span><i></i></a>
    <a href="{:U('Center/collection')}"  class="clearfix"> <span>我的收藏</span><i></i> </a>
    <a href="{:U('Cart/index')}"  class="clearfix"> <span>购物车</span><i></i> </a>
    <if condition="session('wechat.openid') and (session('wechat.openid') eq session('member.openid'))">
      <a class="confirm clearfix" data-msg="确定要解绑微信号吗？" href="{:U('Center/delewechat')}"> <span>解绑微信号</span><i></i> </a>
      <elseif condition="session('wechat.openid')"/>
      <a class="confirm clearfix" data-msg="确定要绑定微信号吗？" href="{:U('Center/bindwechat')}"> <span>绑定微信号</span><i></i> </a>
    </if>
  </div>
  <div class="blank3"></div>
    <!--<a href="{:U('Center/comment')}" class="clearfix"> <span>我的留言</span><i></i> </a>-->
    <!--<a href="user.php?act=affiliate" class="clearfix"> <span>我的推荐</span><i></i> </a>-->
    <!--<a href="{:U('Center/comment')}"  class="clearfix"> <span>我的评论</span><i></i> </a> </div>-->
  <if condition="session('wechat.openid') and (session('wechat.openid') eq session('member.openid'))">
    <else/>
    <div class="list_box padd1 radius10" style="padding-top:0;padding-bottom:0;">
    <div class="list_box padd1 radius10" style="padding:0;">
      <!-- <a href="user.php?act=track_packages" class="clearfix">
                  <span>跟踪包裹</span><i></i>
              </a>  -->
      <a href="{:U('Login/out')}" class="clearfix"> <span>退出登录</span><i></i> </a>
    </div>
  </if>
</section>
  <include file="Public/bottom"/>
</body>



<script type="text/javascript">
  var msg_title_empty = "留言标题为空";
  var msg_content_empty = "留言内容为空";
  var msg_title_limit = "留言标题不能超过200个字";

  $(function(){
//    $(document).on("click",".bindwechat",function(){
//      console.log("绑定按钮");
//    });
    $(document).on("click",".bindwechat",function(e){
      console.log("绑定按钮");
      if(!confirm("确定要绑定微信号吗？")){
        e.preventDefault();
      }
    });
    $(document).on("click",".confirm",function(e){
      var msg = $(this).data("msg");
      if(!confirm(msg)){
        e.preventDefault();
      }
    });
  });
</script>
</html>
